<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>test</title>
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <style type="text/css">
       h1 {font-size:16px;}
       p {font-size:14px;text-indent: 20px;}
    </style>
  </head>
  <body>
    <h1>内置JsAPI CactusJSBridge (Android开发)</h1>
    <p>CactusJSBridge为h5内置JS插件，由h5调用.</p>
    <h1>1:CactusJSBridge.mobile_info()</h1>
    <div id="mobile_info">
    <p>调用场景: h5页面调用,获取设备的基本信息.</p>
    <p>返回json格式字符串</p>
    <div>
	    例:<br/>
	    {
	    os:"android|ios",
	    imei:"355921040541946",
	    mac:"b4:07:f9:d5:9d:9c",
	    ispad:"0",
	    sh:"800",
	    operator:"china-unicom",
	    version:"1",
	    telnum:"",
	    brand:"samsung",
	    imsi:"460013140607927",
	    netenv:"gprs",
	    sw:"480",
	    telmodel:"Nexus S"
	    }<br/>
	    <ul>
	       <li>os:系统android|ios</li>
	       <li>imei:"设备标识"</li>
	       <li>mac:"mac地址"</li>
	       <li>ispad:"是否是pad设备 0|1"</li>
	       <li>sh:"屏幕高"</li>
	       <li>operator:"运营商 (移动|联通|电信)"</li>
	       <li>version:"版本号"</li>
	       <li>telnum:"电话号"</li>
	       <li>brand:"手机品牌"</li>
	       <li>imsi:"sim卡</li>
	       <li>netenv:"网络环境(wifi|2g|3g|4g})"</li>
	       <li>sw:"屏幕宽"</li>
	       <li>telmodel:"型号"</li>
	    </ul>
    </div>  
    </div>
    <h1>2：CactusJSBridge.des3(str)</h1>
    <div id="des3">
        <p>调用场景: h5页面调用,对json数据进行加密处理.</p>
        <p>输入json格式字符串,返回加密后的字符串</p>
    </div>
    <h1>3：CactusJSBridge.setAppInfo(adId,packName,adUrl,imgPath,textContent,textTitle)</h1>
    <div id="des3">
        <p>调用场景: h5页面调用,在app显示时调用,app获取adId,packname,adurl到app缓存中</p>
        <ul>
	       <li>adId:广告表示</li>
	       <li>packName:应用包名 </li>
	       <li>adurl:应用下载地址</li>
	       <li>imgPath:图片路径 </li>
	       <li>textContent：应用描述</li>
	       <li>textTitle：应用标题</li>
	    </ul>
    </div>
   <h1>4：CactusJSBridge.checkApp(packname,adId)</h1>
    <div id="des3">
        <p>调用场景: h5页面调用,获取改 packname在设备的状态  (未下载安装|已安装|已下载未安装)</p>
         <p>返回状态标志位 undown|install|uninstall</p>
        <ul>
	       <li>undown:未下载安装  (显示下载按钮)</li>
	       <li>install:已安装  (显示打开按钮)</li>
	       <li>uninstall:已下载未安装 (显示安装按钮)</li>
	    </ul>
    </div>
   
    
  </body>
</html>
